package org.tiny.autounit.core.data;

import org.tiny.autounit.core.model.UnitMethodPair;
import org.tiny.autounit.core.model.context.UnitMockContext;

public class MockDataContext {

    /**
     * 带参构造
     *
     * @param mockDataRepository
     */
    public MockDataContext(IMockDataRepository mockDataRepository) {
        this.mockDataRepository = mockDataRepository;
    }

    private IMockDataRepository mockDataRepository;

    /**
     * 得到mock数据
     * @param methodPair
     * @param unitMockContext
     * @return
     */
    public String mockTheData(UnitMethodPair methodPair, UnitMockContext unitMockContext){
        return mockDataRepository.mockData(methodPair, unitMockContext);
    }

}
